cmake_minimum_required (VERSION 2.6)
project (word-counter)

set(CMAKE_CXX_FLAGS -g)
set (word_counter_lib_SRCS 
     "wcfactory.cpp"
     "abstractwc.cpp"
     "txtwc.cpp"
     "xmlwc.cpp"
     "main.cpp")

include_directories (${CMAKE_CURRENT_SOURCE_DIR})

find_package (EXPAT)
include_directories (${EXPAT_INCLUDE_DIRS})

find_package (Boost COMPONENTS filesystem REQUIRED)
include_directories (${Boost_INCLUDE_DIRS})

add_executable (word_counter ${word_counter_lib_SRCS})
target_link_libraries (word_counter ${EXPAT_LIBRARIES} ${Boost_LIBRARIES})

